package org.jeecg.modules.htxincailiao.im.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.htxincailiao.im.entity.IMConversation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: im_conversation
 * @Author: jeecg-boot
 * @Date:   2023-03-14 11:13:41
 * @Version: V1.0
 */
public interface IMConversationMapper extends BaseMapper<IMConversation> {

    @Select("<script>" +
            "SELECT * FROM im_conversation WHERE owner_id=#{ownerId} AND target_id=#{targetId}" +
            "</script>")
    IMConversation queryBy(@Param("ownerId") String ownerId,  @Param("targetId") String targetId);


}
